package com.ten.common.core.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
/**
 * 课程(Chapter)实体类
 *
 * @author makejava
 * @since 2022-12-21 23:04:13
 */
@Data
@TableName("edu_chapter")
public class EduChapter implements Serializable {
    private static final long serialVersionUID = 172551657453350801L;
    /**
     * 章节ID
     */
    @TableId
    private String id;
    /**
     * 课程ID
     */
    private String courseId;
    /**
     * 章节名称
     */
    private String title;
    /**
     * 显示排序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    /**
     * 实体类
     */
    @TableField(exist = false)
    private List<EduVideo> video;

    /**
     * 视频名称，需要返回的属性，存入video中
     */
    @TableField(exist = false)
    private String videoTitle;
    /**
     * 课件资源，需要返回的属性，存入video中
     */
    @TableField(exist = false)
    private String videoOriginalName;

    @TableField(exist = false)
    private Long isFree;

}

